Skip to content

Conversation

@daantimmer
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 24, 2025 07:43
@daantimmer daantimmer requested a review from a team as a code owner June 24, 2025 07:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR exposes a parameter registration interface, allowing for a more flexible approach to adding parameters for cucumber expressions.

  • Introduces a new interface, ParameterRegistration, with a pure virtual Add method.
  • Updates ParameterRegistry to inherit from ParameterRegistration and replaces AddParameter with Add.
  • Exposes the parameter registration interface via Application.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
cucumber_cpp/library/cucumber_expression/ParameterRegistry.hpp Renamed and added interface for parameter registration; updated method signature to Add.
cucumber_cpp/library/cucumber_expression/ParameterRegistry.cpp Replaced calls to AddParameter with Add, in line with the new interface.
cucumber_cpp/library/Application.hpp Added accessor method for the parameter registration interface.
cucumber_cpp/library/Application.cpp Exposed the parameter registry via the new accessor method.
Comments suppressed due to low confidence (2)

cucumber_cpp/library/cucumber_expression/ParameterRegistry.hpp:123

  • [nitpick] Consider renaming 'ParameterRegistration' to 'IParameterRegistry' to clearly indicate that this struct is an interface.
    struct ParameterRegistration

cucumber_cpp/library/Application.hpp:48

  • [nitpick] Consider renaming the accessor method to 'GetParameterRegistration()' for improved clarity and consistency with naming conventions for accessor functions.
        cucumber_expression::ParameterRegistration& ParameterRegistration();

@daantimmer daantimmer enabled auto-merge (squash) June 24, 2025 07:45
@github-actions
Copy link

github-actions bot commented Jun 24, 2025

Test Results

26 tests  ±0   26 ✅ ±0   3s ⏱️ ±0s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 7e54f11. ± Comparison against base commit cac7695.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jun 24, 2025

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ CPP clang-format 99 1 0 0 0.91s
✅ DOCKERFILE hadolint 1 0 0 0.36s
❌ JSON jsonlint 8 1 0 0.17s
⚠️ JSON prettier 8 5 1 0 0.5s
⚠️ MARKDOWN markdownlint 4 1 5 0 0.8s
⚠️ MARKDOWN markdown-link-check 4 2 0 19.98s
✅ MARKDOWN markdown-table-formatter 4 1 0 0 0.18s
✅ REPOSITORY git_diff yes no no 0.02s
✅ REPOSITORY grype yes no no 23.57s
✅ REPOSITORY ls-lint yes no no 0.06s
✅ REPOSITORY secretlint yes no no 1.21s
✅ REPOSITORY syft yes no no 1.04s
✅ REPOSITORY trivy yes no no 5.68s
✅ REPOSITORY trivy-sbom yes no no 0.09s
✅ REPOSITORY trufflehog yes no no 3.09s
⚠️ SPELL lychee 54 1 0 2.18s
✅ YAML prettier 10 0 0 0 0.58s
✅ YAML v8r 10 0 0 6.2s
✅ YAML yamllint 10 0 0 0.59s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@daantimmer daantimmer force-pushed the feature/expose-parameter-registration-interface branch 3 times, most recently from b59f31a to eed61b7 Compare June 24, 2025 08:13
@daantimmer daantimmer force-pushed the feature/expose-parameter-registration-interface branch from eed61b7 to cced049 Compare June 24, 2025 08:27
@sonarqubecloud
Copy link

@daantimmer daantimmer merged commit b3655ec into main Jun 24, 2025
19 of 20 checks passed
@daantimmer daantimmer deleted the feature/expose-parameter-registration-interface branch June 24, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants